<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<title>Dart : Libraries : box2d : TimeOfImpact</title>
</head>

<body>

<header></header>

<h1 id="title">class <a name='TimeOfImpact::TimeOfImpact'>TimeOfImpact</a></h1>

<section id="inheritance">

<section class="supertype">
<h2>Supertype:</h2>
<ul><li>Object</li></ul>
</section>

</section>

<section id="summary">

 Class used for computing the time of impact. This class should not be
 constructed usually, just retrieve from the SingletonPool.getTimeOfImpact().
</section>

<section id="fields">
<h2>Fields</h2>
<dl>
<dt>
<span class="field-type"><code><code><a href='int.html#int::int'>int</a></code></code></span>
<span class="field-name"><code><a name='TimeOfImpact::MAX_ITERATIONS'>MAX_ITERATIONS
</a></code></span>
</dt>
<dd>
</dd>
<dt>
<span class="field-type"><code><code><a href='SimplexCache.html#SimplexCache::SimplexCache'>SimplexCache</a></code></code></span>
<span class="field-name"><code><a name='TimeOfImpact::cache'>cache
</a></code></span>
</dt>
<dd>
</dd>
<dt>
<span class="field-type"><code><code><a href='DistanceInput.html#DistanceInput::DistanceInput'>DistanceInput</a></code></code></span>
<span class="field-name"><code><a name='TimeOfImpact::distanceInput'>distanceInput
</a></code></span>
</dt>
<dd>
</dd>
<dt>
<span class="field-type"><code><code><a href='DistanceOutput.html#DistanceOutput::DistanceOutput'>DistanceOutput</a></code></code></span>
<span class="field-name"><code><a name='TimeOfImpact::distanceOutput'>distanceOutput
</a></code></span>
</dt>
<dd>
</dd>
<dt>
<span class="field-type"><code><code><a href='SeparationFunction.html#SeparationFunction::SeparationFunction'>SeparationFunction</a></code></code></span>
<span class="field-name"><code><a name='TimeOfImpact::fcn'>fcn
</a></code></span>
</dt>
<dd>
</dd>
<dt>
<span class="field-type"><code><code><a href='List.html#List::List'>List&lt;E&gt;</a></code></code></span>
<span class="field-name"><code><a name='TimeOfImpact::indexes'>indexes
</a></code></span>
</dt>
<dd>
</dd>
<dt>
<span class="field-type"><code><code><a href='DefaultWorldPool.html#DefaultWorldPool::DefaultWorldPool'>DefaultWorldPool</a></code></code></span>
<span class="field-name"><code><a name='TimeOfImpact::pool'>pool
</a></code></span>
</dt>
<dd>
</dd>
<dt>
<span class="field-type"><code><code><a href='Sweep.html#Sweep::Sweep'>Sweep</a></code></code></span>
<span class="field-name"><code><a name='TimeOfImpact::sweepA'>sweepA
</a></code></span>
</dt>
<dd>
</dd>
<dt>
<span class="field-type"><code><code><a href='Sweep.html#Sweep::Sweep'>Sweep</a></code></code></span>
<span class="field-name"><code><a name='TimeOfImpact::sweepB'>sweepB
</a></code></span>
</dt>
<dd>
</dd>
<dt>
<span class="field-type"><code><code><a href='int.html#int::int'>int</a></code></code></span>
<span class="field-name"><code><a name='TimeOfImpact::toiCalls'>toiCalls
</a></code></span>
</dt>
<dd>
</dd>
<dt>
<span class="field-type"><code><code><a href='int.html#int::int'>int</a></code></code></span>
<span class="field-name"><code><a name='TimeOfImpact::toiIters'>toiIters
</a></code></span>
</dt>
<dd>
</dd>
<dt>
<span class="field-type"><code><code><a href='int.html#int::int'>int</a></code></code></span>
<span class="field-name"><code><a name='TimeOfImpact::toiMaxIters'>toiMaxIters
</a></code></span>
</dt>
<dd>
</dd>
<dt>
<span class="field-type"><code><code><a href='int.html#int::int'>int</a></code></code></span>
<span class="field-name"><code><a name='TimeOfImpact::toiMaxRootIters'>toiMaxRootIters
</a></code></span>
</dt>
<dd>
</dd>
<dt>
<span class="field-type"><code><code><a href='int.html#int::int'>int</a></code></code></span>
<span class="field-name"><code><a name='TimeOfImpact::toiRootIters'>toiRootIters
</a></code></span>
</dt>
<dd>
</dd>
<dt>
<span class="field-type"><code><code><a href='Transform.html#Transform::Transform'>Transform</a></code></code></span>
<span class="field-name"><code><a name='TimeOfImpact::xfA'>xfA
</a></code></span>
</dt>
<dd>
</dd>
<dt>
<span class="field-type"><code><code><a href='Transform.html#Transform::Transform'>Transform</a></code></code></span>
<span class="field-name"><code><a name='TimeOfImpact::xfB'>xfB
</a></code></span>
</dt>
<dd>
</dd>
</dl>
</section>

<section id="constructors">
</section>

<section id="methods">
<h2>Methods</h2>
<dl>
<dt>
<code>void <a name='TimeOfImpact::timeOfImpact'>timeOfImpact</a>(<code><a href='TimeOfImpactOutput.html#TimeOfImpactOutput::TimeOfImpactOutput'>TimeOfImpactOutput</a></code> <a name='TimeOfImpact::timeOfImpact::output'>output</a>, <code><a href='TimeOfImpactInput.html#TimeOfImpactInput::TimeOfImpactInput'>TimeOfImpactInput</a></code> <a name='TimeOfImpact::timeOfImpact::input'>input</a>)</code></dt>
<dd>

 Compute the upper bound on time before two shapes penetrate. Time is
 represented as a fraction between [0,tMax]. This uses a swept separating
 axis and may miss some intermediate, non-tunneling collision. If you
 change the time interval, you should call this function again.
 Note: use Distance to compute the contact point and normal at the time
 of impact.
</dd>
</dl>
</section>

<footer></footer>

</body></html>
